package com.darcytech.debezium.server.controller;

import java.util.Map;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.google.common.collect.ImmutableMap;

@RestController
public class HealthController {

    private static final String HEALTH = "/health";

    private static final Map<String, String> statusMap = new ImmutableMap.Builder<String, String>()
            .put("status", "UP")
            .build();

    @GetMapping(HEALTH)
    public Map<String, String> health() {
        return statusMap;
    }

}
